function getPaths(tree) {
    let paths=[]
    function bianli(tree){
        for(let a=0;a<tree.length;a++){
            if(tree[a].path){
                paths.push(tree[a].path)
            }else{
                bianli(tree[a].children)
            }
        }
    }
    bianli(tree) 
    return paths
}
export default getPaths